package com.xindz.cn.mvptest.service;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;

import com.xindz.cn.mvptest.annbean.TestUser;
import com.xindz.cn.mvptest.service.impl.LeanCloudServiceBean;

/**
 * @name MvpTest
 * @class name：com.xindz.cn.mvptest.service
 * @describe describe
 * @anthor XINDZ
 * @time 2017/11/2 16:50
 * @change
 * @chang time
 * @class describe
 */
public class ServiceTestActivity extends Activity {
    @RequiresApi(api = Build.VERSION_CODES.N)
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LeanCloudServiceBean<TestUser> leanCloudService = new LeanCloudServiceBean();
        TestUser user1 = new TestUser();
        user1.setId("1");
        user1.setName("King");
        try {
            String objectId = leanCloudService.save(user1);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
